package com.buleqr.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buleqr.dao.CouponCodeDao;
import com.buleqr.mapper.CouponCodeMapper;
import com.buleqr.pojo.CouponCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CouponCodeDaoImpl extends ServiceImpl<CouponCodeMapper, CouponCode> implements CouponCodeDao {

    @Autowired
    private CouponCodeMapper baseMapper;

    @Override
    public int insertBatch(List<CouponCode> list) {
        return baseMapper.insertBatch(list);
    }
}
